<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户管理</title>
<%@ include file="/common/meta.jsp"%>
<script type="text/javascript">
	$(function() {
		$("#save").click(function() {
			$("#userForm").submit();
			$("#name").val("");
			$("#pass").val("");
			$("#save").val("添加");
		});
		///////////////////////////添加密码/////////////////////////////////////
		$("#addPass").toggle(function() {
			$("#pass").attr("disabled", "").css("backgroundColor","white");
			$(this).val("使用初值密码");
		}, function() {
			$("#pass").attr("disabled", "disabled").css("backgroundColor","silver");
			$(this).val("设置密码");
		});
		//////////////////////////验证程序////////////////////////////////////////
		$("#userForm").validate({
			event : "blur",
			onsubmit : true,
			rules : {
				name : "required"
			},
			messages : {
				name : "请填写用户名"
			}

		});
	});
</script>
</head>
<body>
	<table width="100%" border="0" align="center" cellpadding="0"
		cellspacing="0">
		<tr>
			<td height="30"><table width="100%" border="0" cellspacing="0"
					cellpadding="0">
					<tr>
						<td width="15" height="30"><img src="images/tab_03.gif"
							width="15" height="30" />
						</td>
						<td background="images/tab_05.gif"><img src="images/311.gif"
							width="16" height="16" /> <span class="STYLE4">服务器进程配置列表</span>
						</td>
					</tr>
				</table>
			</td>
			<td width="14"><img src="images/tab_07.gif" width="14"
				height="30" />
			</td>
		</tr>
	</table>
	</td>
	</tr>
	<tr>
		<td><form method="post" id="userForm" target="listIframe"
				action="${ctx}/sys/user/save.action" style="margin-bottom: 0px;">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<input type="hidden" name="entity.id" id="id" />
					<tr>
						<td width="9" background="images/tab_12.gif">&nbsp;</td>
						<td bgcolor="#f3ffe3"><table width="99%" border="0"
								align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98"
								onmouseover="changeto()" onmouseout="changeback()">
								<tr>
									<td width="9%" height="18" bgcolor="#FFFFFF">管理员用户名:</td>
									<td width="28%" height="18" bgcolor="#FFFFFF" class="STYLE2"><input
										type="text" name="name" id="name" /><span class="mustInput">*</span>
									</td>
									<td width="63%" height="18" bgcolor="#FFFFFF">填写管理员用户名</td>
								</tr>
								<tr>
									<td height="18" bgcolor="#FFFFFF">管理员密码:</td>
									<td height="18" bgcolor="#FFFFFF" class="STYLE2"><input
										type="text" name="pass" id="pass" disabled="disabled" /><input
										class="button" type="button" id="addPass" value="设置密码" style="margin-left: 15px;"></td>
									<td height="18" bgcolor="#FFFFFF">填写管理员密码，可以不填写默认为000000</td>
								</tr>
								<tr>
									<td height="18" colspan="3" bgcolor="#FFFFFF"><input
										type="button" class="button" value="添加" di id="save"
										style="float: right; margin-right: 15px;" /> <input
										type="reset" class="button" value="重置" id="save"
										style="float: right; margin-right: 15px;" /></td>
								</tr>
								<tr>
									<td height="18" colspan="3" bgcolor="#FFFFFF" class="seperator"><img style="margin-top: 4px;" src="images/311.gif" width="16" height="16"><span>&nbsp;信息列表</span></td>
								</tr>
								<tr>
									<td height="18" colspan="3" bgcolor="#FFFFFF"><iframe
											id="listIframe" name="listIframe"
											src="${ctx}/sys/user/list.action" width="100%" height="245"
											marginHeight="0" marginWidth="0" frameBorder="0"
											scrolling="no"
											onload="this.height=this.contentWindow.document.body.scrollHeight"></iframe>
									</td>
								</tr>
							</table>
						</td>
						<td width="9" background="images/tab_16.gif">&nbsp;</td>
					</tr>
				</table>
			</form>
		</td>
	</tr>
	<tr>
		<td height="29"><table width="100%" border="0" cellspacing="0"
				cellpadding="0">
				<tr>
					<td width="15" height="29"><img src="images/tab_20.gif"
						width="15" height="29" />
					</td>
					<td background="images/tab_21.gif"><table width="100%"
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td height="29" nowrap="nowrap">&nbsp;</td>
							</tr>
						</table>
					</td>
					<td width="14"><img src="images/tab_22.gif" width="14"
						height="29" />
					</td>
				</tr>
			</table>
		</td>
	</tr>
	</table>
</body>
</html>